package com.bawei.database.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters

/**
 * 用户信息表实体
 */

@Entity(tableName = "user_info")
@TypeConverters(CustomTypeConverters::class) //自定义字段转换器
data class UserInfoEntity(
    @PrimaryKey
    val id: Int,

    @ColumnInfo("accountid")
    val accountId: String,

    @ColumnInfo("ctime")
    val cTime: String,
    val headImg: String,
    val isAuthor: Int,
    val nick: String,
    val password: String,

    @ColumnInfo("roleid")
    val roleId: String,

    @ColumnInfo("name")
    val username: String,
)